#!/bin/bash
#chkconfig:2345 88 88
#description:zookeeper
. /etc/profile
v_sh_file="${HOME}/bin/zkServer.sh"
case $1 in
          start) su root ${v_sh_file} start;;
          stop) su root ${v_sh_file} stop;;
          status) su root ${v_sh_file} status;;
          restart) su root ${v_sh_file} restart;;
          *)  echo "require start|stop|status|restart"  ;;
esac